<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      FreeType-2.10.1
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.78.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-2020-04-02">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 2020-04-02
      </h4>
      <h3>
        Chapter&nbsp;10.&nbsp;Graphics and Font Libraries
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="exiv2.html" title="Exiv2-0.27.2">Prev</a>
          <p>
            Exiv2-0.27.2
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="fontconfig.html" title=
          "Fontconfig-2.13.1">Next</a>
          <p>
            Fontconfig-2.13.1
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="graphlib.html" title=
          "Chapter&nbsp;10.&nbsp;Graphics and Font Libraries">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="freetype2" name="freetype2"></a>FreeType-2.10.1
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to FreeType2
        </h2>
        <p>
          The <span class="application">FreeType2</span> package contains a
          library which allows applications to properly render <span class=
          "application">TrueType</span> fonts.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "https://downloads.sourceforge.net/freetype/freetype-2.10.1.tar.xz">
                https://downloads.sourceforge.net/freetype/freetype-2.10.1.tar.xz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: bd42e75127f8431923679480efb5ba8f
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 2.3 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 30 MB (with additional
                documentation)
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: 0.2 SBU (with additional documentation)
              </p>
            </li>
          </ul>
        </div>
        <h3>
          Additional Downloads
        </h3>
        <div class="itemizedlist">
          <p class="title">
            <strong>Additional Documentation</strong>
          </p>
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "https://downloads.sourceforge.net/freetype/freetype-doc-2.10.1.tar.xz">
                https://downloads.sourceforge.net/freetype/freetype-doc-2.10.1.tar.xz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: b56d1af90510f0ae4bf12a82410985f5
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 2.0 MB
              </p>
            </li>
          </ul>
        </div>
        <h3>
          FreeType2 Dependencies
        </h3>
        <h4>
          Recommended
        </h4>
        <p class="recommended">
          <a class="xref" href="harfbuzz.html" title=
          "HarfBuzz-2.6.4">HarfBuzz-2.6.4</a> (first, install without it,
          after it is installed, reinstall <a class="xref" href=
          "freetype2.html" title="FreeType-2.10.1">FreeType-2.10.1</a>),
          <a class="xref" href="libpng.html" title=
          "libpng-1.6.37">libpng-1.6.37</a>, and <a class="xref" href=
          "which.html" title="Which-2.21 and Alternatives">Which-2.21</a>
        </p>
        <h4>
          Optional (for documentation)
        </h4>
        <p class="optional">
          <a class="ulink" href=
          "https://pypi.org/project/docwriter/">docwriter</a>
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/freetype2">http://wiki.linuxfromscratch.org/blfs/wiki/freetype2</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of FreeType2
        </h2>
        <p>
          If you downloaded the additional documentation, unpack it into the
          source tree using the following command:
        </p>
        <pre class="userinput">
<kbd class=
"command">tar -xf ../freetype-doc-2.10.1.tar.xz --strip-components=2 -C docs</kbd>
</pre>
        <p>
          Install <span class="application">FreeType2</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class=
"command">sed -ri "s:.*(AUX_MODULES.*valid):\1:" modules.cfg &amp;&amp;

sed -r "s:.*(#.*SUBPIXEL_RENDERING) .*:\1:" \
    -i include/freetype/config/ftoption.h  &amp;&amp;

./configure --prefix=/usr --enable-freetype-config --disable-static &amp;&amp;
make</kbd>
</pre>
        <p>
          This package does not come with a test suite.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make install</kbd>
</pre>
        <p>
          If you downloaded the optional documentation, install it as the
          <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class=
"command">install -v -m755 -d /usr/share/doc/freetype-2.10.1 &amp;&amp;
cp -v -R docs/*     /usr/share/doc/freetype-2.10.1 &amp;&amp;
rm -v /usr/share/doc/freetype-2.10.1/freetype-config.1</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <span class="command"><strong>sed -ri ...</strong></span>: First
          command enables GX/AAT and OpenType table validation and second
          command enables Subpixel Rendering. Note that Subpixel Rendering
          may have patent issues. Be sure to read the <code class=
          "literal">'Other patent issues'</code> part of <a class="ulink"
          href=
          "http://www.freetype.org/patents.html">http://www.freetype.org/patents.html</a>
          before enabling this option.
        </p>
        <p>
          <em class="parameter"><code>--enable-freetype-config</code></em>:
          This switch ensure that the man page for freetype-config is
          installed.
        </p>
        <p>
          <code class="option">--without-harfbuzz</code>: If <span class=
          "application">harfbuzz</span> is installed prior to <span class=
          "application">freetype</span> without <span class=
          "application">freetype</span> support, use this switch to avoid a
          build failure.
        </p>
        <p>
          <em class="parameter"><code>--disable-static</code></em>: This
          switch prevents installation of static versions of the libraries.
        </p>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Program:</strong>
              <span class="segbody">freetype-config</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Library:</strong>
              <span class="segbody">libfreetype.so</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directories:</strong>
              <span class="segbody">/usr/include/freetype2 and
              /usr/share/doc/freetype-2.10.1</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="freetype-config" name=
                    "freetype-config"></a><span class="term"><span class=
                    "command"><strong>freetype-config</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is used to get <span class="application">FreeType</span>
                    compilation and linking information.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="libfreetype" name="libfreetype"></a><span class=
                    "term"><code class=
                    "filename">libfreetype.so</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    contains functions for rendering various font types, such
                    as TrueType and Type1.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-03-19 01:44:08 -0500
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="exiv2.html" title="Exiv2-0.27.2">Prev</a>
          <p>
            Exiv2-0.27.2
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="fontconfig.html" title=
          "Fontconfig-2.13.1">Next</a>
          <p>
            Fontconfig-2.13.1
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="graphlib.html" title=
          "Chapter&nbsp;10.&nbsp;Graphics and Font Libraries">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
